<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOddsHandicapsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('odds_handicaps', function (Blueprint $table) {
            $table->increments('id');
            $table->string('code', 64)->unique()->comment('盘口编号');
            $table->integer('plat_id')->comment('平台id');
            $table->string('plat_code', 64)->nullable()->comment('平台盘口编号');
            $table->integer('odds_value')->unsigned()->default(0)->comment('赔率');
            $table->string('description')->nullable()->comment('赔率描述');
            $table->timestamps();
        }
        );
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('odds_handicaps');
    }
}
